﻿using System.Collections.Generic;
using GC_FFW.BusinessEntities.Enums.Soccerfame;

namespace GC_FFW.BusinessEntities.Extensions.Enums.Soccerfame
{
	public static class EventTypeEx
	{
		public static string EventImageName(this EventType type)
		{
			switch (type)
			{
				case EventType.RegularGoal:
					return string.Format("regular_goal.png");

				case EventType.YellowCard:
					return string.Format("yellow_card.png");

				case EventType.OwnGoal:
					return string.Format("own_goal.png");

				case EventType.RedCard:
					return string.Format("red_card.png");

				case EventType.Penalty:
					return string.Format("penalty.png");

				default:
					return string.Empty;
			}
		}

		public static IEnumerable<string> GetBadValueParts(this EventType type)
		{
			switch (type)
			{
				case EventType.RegularGoal:
					return new List<string>
					{
						"missed"
					};

				case EventType.YellowCard:
					return null;

				case EventType.OwnGoal:
					return new List<string>
					{
						"missed"
					};

				case EventType.RedCard:
					return null;

				case EventType.Penalty:
					return new List<string>
					{
						"missed"
					};

				default:
					return null;
			}
		}
	}
}
